import request from '@/utils/request'

// 总后台
/**
 * 
 * @param {*} params 获取统计
 * @returns /fx/distribution/statistics
 */
export function Statistics(params) {
    return request({
        url: '/fx/distribution/statistics',
        method: 'get'
    })
}

/**
 * 
 * @param {*} params 获取总后台统计
 * @returns /fx/statistic/topStatistic
 */
export function TopStatistic(params) {
    return request({
        url: '/fx/statistic/topStatistic',
        method: 'get'
    })
}

/**
 * 
 * @param {*} params 获取商家统计
 * @returns /fx/statistic/getStore
 */
export function GetStore(params) {
    return request({
        url: '/fx/statistic/getStore',
        method: 'get'
    })
}

/**
 * 
 * @param {*} params 获取供应商统计
 * @returns /fx/statistic/getSupplier
 */
export function GetSupplier(params) {
    return request({
        url: '/fx/statistic/getSupplier',
        method: 'get'
    })
}

/**
 * 
 * @param {*} params 获取用户增长图
 * @returns /fx/statistic/getUserChart
 */
export function GetUserChart(params) {
    return request({
        url: '/fx/statistic/getUserChart',
        method: 'get'
    })
}

/**
 * 
 * @param {*} params 获取订单饼图
 * @returns /fx/statistic/getOrderChart
 */
export function GetOrderChart(params) {
    return request({
        url: '/fx/statistic/getOrderChart',
        method: 'get'
    })
}

// 供应商
/**供应商统计 */
export function GetSupplierInfo(){
    return request({
        url: '/fx/statistic/getSupplier',
        method: 'get'
    })
}

// 商家
/**商家统计 */
export function GetStoreInfo() {
    return request({
        url: '/fx/statistic/getStore',
        method: 'get'
    })
}